package structural.bridge;

import structural.decorator.AbstractRefill;
import structural.decorator.AbstractWrapper;
import structural.decorator.BlueRefill;
import structural.decorator.WhiteWrapper;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Test {
    public static void main(String[] args) {
        AbstractRefill refill = new BlueRefill();
        AbstractWrapper whiteWrapper = new WhiteWrapper(refill);
        whiteWrapper.write();
    }
}
